import numpy as np
import torch
import random
import math
import torch.nn.functional as F
import matplotlib.pyplot as plt
import re
import torch.nn as nn
import copy
import warnings
import copy
from pathlib import Path

a = np.array([1, 4, 3, 5, 7, 3, 8, 0])
print(np.argsort(a))  # 升序
print(np.argsort(-a))  # 降序
